/**
 * Bishop.java
 * Auti i class ine ipethini gia ta Pawns ( Stratiotakia ). Ohi gia tous kanones pou ta diakrini.
 */

package chess;

/**
 * 
 * @author Stordopoulos Dimitris <stordop@csd.uoc.gr>
 */
public class Bishop extends Piece{
    
    public Bishop(){ super(); }
    
    /**
     * 
     * @param clr To hroma gia to Pawn, vasi tou opiou tha apofasisti to icon. 
     * @param mov To an to Pawn tha ine movable apo to mouse.
     */
    public Bishop(char clr, boolean mov){
        this();
        if(clr=='w'){ setPieceImage("Wbishop.png"); }
        else{ setPieceImage("Bbishop.png"); } //black pawn !!!
        setMovability(mov);
        setPieceColor(clr);
    }
}